package com.fang.springcrud.resp;

public class ResponseBean {

    private int code;

    private Page page;

    public static ResponseBean SUCCESS = new ResponseBean(0);

    public ResponseBean(int code) {
        this.code = code;
    }

    public ResponseBean() {

    }

    public static class Page {
        private Object list;
        private int totalCount;

        public Object getList() {
            return list;
        }

        public void setList(Object list) {
            this.list = list;
        }

        public int getTotalCount() {
            return totalCount;
        }

        public void setTotalCount(int totalCount) {
            this.totalCount = totalCount;
        }
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Page getPage() {
        return page;
    }

    public void setPage(Page page) {
        this.page = page;
    }
}
